@import url('./chatModule.css');

.root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-image: url("../bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  z-index: -1;
}

.blur {
  filter: blur(3px);
  z-index: 0;
  /* box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.5); */
}

.none {
  display: none !important;
}

.block {
  display: block !important;
}

.sticky {
  position: sticky;
}

.time {
  padding-top: 250px;
  text-align: center;
  font-size: 50px;
  color: #fff;
  text-shadow: 0px 0px 5px;
  position: relative;
}

.time span {
  cursor: pointer;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.search {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.box_search {
  width: 50%;
  position: relative;
}

.box_search input {
  font-family: "微软雅黑";
  border-radius: 25px;
  color: gray;
  width: 100%;
  height: 35px;
  box-shadow: 0px 0px 5px #fff;
  border: rgba(255, 255, 255, 0.5) solid 1px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
}

.box_search .chatgpt-container {
  position: absolute;
  display: none;
  left: 0;
  top: 40px;
  width: 100%;
  height: 500px;
  box-sizing: border-box;
  padding: 10px 5px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.8);
}

.chatgpt-container .chat-body {
  padding: 10px;
  display: flex;
  flex-flow: column nowrap;
}

/* .box_search:hover {
  width: 50%;
  box-shadow: 0px 0px 7px #fff;
  color: black;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1);
} */

.box_search:focus {
  border: rgba(255, 255, 255, 0.5) solid 1px;
  box-shadow: 0px 0px 10px #fff;
  color: black;
  background: rgba(255, 255, 255, 0.9);
  width: 50%;
  transform: scale(1);
  text-align: center;
}

.box_search::-webkit-input-placeholder{   /* 使用webkit内核的浏览器 */
	text-align: center;
}
.box_search:-moz-placeholder{    /* Firefox版本4-18 */
	text-align: center;
}              
.box_search::-moz-placeholder{    /* Firefox版本19+ */
	text-align: center;
}              
.box_search:-ms-input-placeholder{   /* IE浏览器 */
	text-align: center;
}

.root-nav {
  padding: 10px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}

.root-body {
  height: calc(100% - 90px);
  overflow: auto;
}

.project {
  margin: 250px auto 0;
  width: 60%;
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
}

.project > div {
  color: #fff;
  line-height: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  border-radius: 5px;
  flex: 1 1 auto;
}

.more-container {
  position: absolute;
  top: 20px;
  right: 0;
  min-width: 100px;
  padding: 10px;
  background-color: inherit;
  border-radius: 5px;
  display: none;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  text-align: center;
}

.logo-box {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.rotate-loading {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
}

.rotate-loading::after, .rotate-loading:after{
  animation: rotate 4s linear infinite;
  content:'';
  position:absolute;
  left:-50%;
  top:-50%;
  width:80px;
  height:80px;
  background-repeat:no-repeat;
  background-size:50% 50%,50% 50%;
  background-position:0 0, 100% 0, 100% 100%, 0 100%;
  background-image:linear-gradient(#d53e33,#d53e33), linear-gradient(#399953,#399953),linear-gradient(#377af5,#377af5), linear-gradient(#fbb300,#fbb300);
}

.box {
  white-space: nowrap;
}

.scrollContent {
  width: 600px;
  display: inline-block;
  text-align: center;
  animation: loop 3s linear infinite;
}

.logo {
  transform: scale(1.3);
  margin-left: 30px;
  font-weight: 400;
}

@keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

span {
  background-image: linear-gradient(to right, #fff, #eee, #1c95c8, #087fb3);
  background-repeat: no-repeat;
  background-size: 0 2px;
  cursor: pointer;
  white-space: nowrap;
}

span:not(.logo, .marquee, .heat-value-span, .tag):hover {
  transform: translateX(-50%) scale(1.1);
  text-shadow: 0px 0px 5px;
  transition: background-size 1s ease-in-out;
  background-size: 100% 2px;
  background-position: left bottom;
}

.copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 30px;
  text-align: center;
  background: repeating-linear-gradient(to right, #000, transparent,#000);
  font-size: 12px;
}

.marquee {
  letter-spacing: 0.2rem;
  font-size: 1.2rem;
  line-height: 40px;
  font-weight: bold;
  background-image: -webkit-linear-gradient(left, #fbb300, #d53e33 25%, #399953 50%, #377af5, #fbb300);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-background-size: 200% 100%;
  -webkit-animation: maskedAnimation 6s infinite linear;
}
@keyframes maskedAnimation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -100% 0;
    }
}